<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="<spring:theme code='main'/>" type="text/css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><spring:message code="registration.title" /></title>
    </head>
    <body>
        <form:form method="Post" action="registration.html"

                   commandName="registrationBean">
            <table>
                <tr>
                    <td><spring:message code="registration.form.userName" />:
                        <form:errors cssClass="errorMessage" path="userName" />
                    </td>
                </tr>
                <tr>
                    <td><form:input path="userName" /></td>
                </tr>
                <tr>
                    <td><spring:message code="registration.form.password" />:
                        <form:errors cssClass="errorMessage" path="password" />
                    </td>
                </tr>
                <tr>
                    <td><form:password path="password" /></td>
                </tr>
                <tr>
                    <td><spring:message code="registration.form.confirmPassword" />:
                        <form:errors cssClass="errorMessage" path="confirmPassword" />
                    </td>
                </tr>
                <tr>
                    <td><form:password path="confirmPassword" /></td>
                </tr>
                <tr>
                    <td><spring:message code="registration.form.email" />:
                        <form:errors path="email"  cssClass="errorMessage" /></td>
                </tr>
                <tr>
                    <td><form:input path="email" /></td>
                </tr>
                <tr>
                    <td><input type="submit" value="Submit" /></td>
                </tr>
            </table>

        </form:form>
    </body>
</html>
